package model

import "time"

// User 用户表
type Crules struct {
	Id      int       `json:"id" form:"id"`
	Cid     string    `json:"cid" form:"cid"`
	Content string    `json:"content" form:"content"`
	Data    time.Time `json:"data" form:"data"`
}

func CrulesAll(cid string) ([]Crules, error) {
	mods := make([]Crules, 0, 4)
	err := DB.Select(&mods, "select * from crules where cid=?", cid)
	return mods, err
}
